<?php
/**
*
* PHP 5
*
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
* @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
* @link          http://cakephp.org CakePHP(tm) Project
* @package       app.View.Layouts
* @since         CakePHP(tm) v 0.10.0.1076
* @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
*/

$cakeDescription = __d('cake_dev', 'Worldwide Seventh-day Adventist Church: Kwabrafoso - Obuasi');
?>
<!DOCTYPE html>
<html>
<head>
	<?php echo $this->Html->charset(); ?>
	<title>
		<?php echo $cakeDescription ?>:
		<?php echo $title_for_layout; ?>
	</title>
	<?php
	echo $this->Html->meta('icon');
	echo $this->Html->css('c11f8f1b6c157a7a1ee04039d038c282336416b9');
	echo $this->html->script("libs/modernizr-2.0.6.min.js");
	echo $this->html->script("libs/jquery-1.7.2.min.js");
	echo $this->html->script("jquery.min.js");
	echo $this->html->script("8f71c247c4dadc837fe569208a7a1dc0f7625c46.js");


	echo $this->fetch('meta');
	echo $this->fetch('css');
	echo $this->fetch('script');

	echo $scripts_for_layout;
	?>       
    </head>
    <body id=top>
    	<div id=container>
    		<div id=header-surround>
    			<header id=header><?php echo $this->Html->image('logo.png', array( 'border' => '0','class'=>'logo')) ?>

    				<a href="javascript:void(0);" onclick="$('#info-dialog').dialog({ modal: true });"><span
    					class=btn-info style="margin-left: 15px;"></span></a>
    					<div id=info-dialog title=About S style="display: none;">
    						<p><h3>Seventh-day Adventist Church - Kwabrafoso: Records Management System</h3></p>
    						<p>KOSDAC Records Management System is a software application that manages Church records through the Registry Unit. This includes saving electronic version of personnel file.</p>
    						<p>Version 1.0.</p>
    					</div>
    					
    					<div id=user-info>

    						<p><span class=messages>User Role : 
    							<a href="javascript:void(0);">
    								Admin
    							</a>
    							<?php echo $this->Html->link('Logout', array('controller'=>'User', 'action' => 'logout') ,array('target' => '_self', 'class'=>'button red', 'escape' => false));?>
    						</p>
    					</div>
    				</header>
    			</div>
    			<div class=fix-shadow-bottom-height></div>
    			<aside id=sidebar>
    				
    				<section id=login-details><?php echo $this->Html->image('avatar_small.png', array( 'class'=>'img-left framed', 'border' => '0','alt'=>'Hello Admin')) ?>


    					<h3>Logged in as</h3>
    					<h2><a class=user-button href="javascript:void(0);">
    						Registry Staff

    						&nbsp;<span class=arrow-link-down></span></a></h2>


    						<ul class=dropdown-username-menu>
    							<li>
    								<?php echo $this->Html->link('Profile', array('controller'=>'User', 'action' => '#') ,array('target' => '_self', 'escape' => false));?>
    							</li>
    							<li>
    								<?php echo $this->Html->link('Logout', array('controller'=>'User', 'action' => 'logout') ,array('target' => '_self', 'escape' => false));?>
    							</li>
    						</ul>
    						<div class=clearfix></div>
    					</section>
    					

    					<?php echo $this->element('sidebar'); ?>

    				</aside>
    				<!-- MAIN CONTENT STARTS-->
    				<div id=main role=main>
    					<!-- TITLE BAR STARTS-->
    					<div id=title-bar>
    						<ul id=breadcrumbs>
    							<li><a href="#" title=Home><span id=bc-home></span></a></li>
    							<li class=no-hover><h3> <?php echo $pageTitle; ?></h3></li>
    						</ul>
    					</div>
    					<div class="shadow-bottom shadow-titlebar"></div>
    					<!-- TITLE BAR ENDS-->

    					<div id=main-content>
    						<div class=container_12>


    							<?php echo $this->Session->flash(); ?>

    							<?php echo $this->fetch('content'); ?>

    							<div class="clear height-fix"></div>
    						</div>
    					</div>
    					<!--CONTENT ENDS-->

    				</div>
    				<!-- MAIN CONTENT ENDS-->
    				<?php echo $this->element('footer'); ?>

    			</div>

    		</body>
    		</html>